<h2>My Profile</h2>

<div id="instruction">
	<ul>
		<li><u>Site</u>: The organization you are most closely affiliated with. The managers associated with this site will be the ones to approve if your application can move forward for consideration.</li>
		<li><u>Postion</u>: Your job title or place in the organization.</li>
		<li><u>Role</u>:  Explains your role in the grant selection process.</li>
		<li><u>Manager</u>:  The people who will first receive your grant and determine if it meets the qualifications for the specific organizational needs and grant.</li>
	</ul>
</div>

<p>
	<strong>Email Address</strong>: <%= mail_to @user.email %>
</p>

<p>
	<strong>Name</strong>: <%=h @user.first_name + " " +  @user.last_name %> 

</p> 

<p>
	<strong>Work Phone</strong>: <%=h @user.work_phone %> 
</p>

<p>
	<strong>Role(s)</strong>: <%=h @user.roles.map {|r| "#{r.name} "} %> 
</p>

<p>
	<strong>Site</strong>: <%=h @user.site.name %> 
</p>   

<p>
	<strong>Position/Title</strong>: <%=h @user.position %> 
</p>
     
<p>
	<strong>Site Phone</strong>: <%=h @user.site.phone %> 
</p>

<% if @user.id != @user.site.manager.id -%>
<p>
	<strong>Manager</strong>: <%= link_to @user.site.manager.display_name, :action => "show", :id => @user.site.manager %> 
</p>  

<p>
	<strong>Manager Email</strong>: <%= mail_to @user.site.manager.email %> 
</p>
     
<p>
	<strong>Manager Phone</strong>: <%=h @user.site.manager.work_phone %> 
</p>   
<% end -%>

<% if current_user == @user %>
<%= link_to 'Change Password', :action => 'change_password', :id => @user %> |
<% end %>

<% if current_user == @user || current_user.is_admin? %>
<%= link_to 'Edit', :action => 'edit', :id => @user %>
<% end %>
